//
//  SKModel_foodTopRank.m
//  Gastrosoph
//
//  Created by 张明磊 on 12-10-31.
//
//

#import "SKModel_foodTopRank.h"

@implementation SKModel_foodTopRank

@synthesize image_share_userHeadPortrait = _image_share_userHeadPortrait;

@synthesize string_foodName = _string_foodName;

@synthesize string_share_userName = _string_share_userName;

@synthesize string_share_time = _string_share_time;

@synthesize image_food = _image_food;

@synthesize string_restaurantName = _string_restaurantName;

@synthesize string_distance = _string_distance;

@synthesize integer_wantEatCount = _integer_wantEatCount;

@synthesize integer_commentCount = _integer_commentCount;

@synthesize array_touristArray = _array_touristArray;

@synthesize integer_foodRate = _integer_foodRate;


- (id)initWithUesrHeadPortrait:(UIImage *)_headPortrait
                      foodName:(NSString *)_foodName
                 shareUserName:(NSString *)_userName
                     shareTime:(NSString *)_shareTime
                     foodImage:(UIImage *)_foodImage
                restaurantName:(NSString *)_restaurantName
                      distance:(NSString *)_distance
                  wantEatCount:(NSInteger)_wantEatCount
                  commentCount:(NSInteger)_commentCount
                  touristArray:(NSArray *)_touristArray
                      foodRate:(NSInteger)_foodRate
{
    self = [super init];
    
    if(self)
    {
        self.image_share_userHeadPortrait = _headPortrait;
        
        self.string_foodName = _foodName;
        
        self.string_share_userName = _userName;
        
        self.string_share_time = _shareTime;
        
        self.image_food = _foodImage;
        
        self.string_restaurantName = _restaurantName;
        
        self.string_distance = _distance;
        
        self.integer_wantEatCount = _wantEatCount;
        
        self.integer_commentCount = _commentCount;
        
        self.array_touristArray = _touristArray;
        
        self.integer_foodRate = _foodRate;
    }
    
    return self;
}


- (void)dealloc
{
    [_image_share_userHeadPortrait release], _image_share_userHeadPortrait = nil;
    
    [_string_foodName release], _string_foodName = nil;
    
    [_string_share_userName release], _string_share_userName = nil;
    [_string_share_time release], _string_share_time = nil;
    
    [_image_food release], _image_food = nil;
    
    [_string_restaurantName release], _string_restaurantName = nil;
    [_string_distance release], _string_distance = nil;
    
    [_array_touristArray release], _array_touristArray = nil;
    
    [super dealloc];
}

@end
